package com.idudiao.sc.common.core.validator;

import com.idudiao.sc.common.core.validator.constraints.District;

import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;

/**
 * 地区代码校验逻辑
 *
 * @author songyinyin
 * @since 2019/2/28 11:29
 */
public class DistrictValidator implements ConstraintValidator<District, String> {

    @Override
    public void initialize(District constraintAnnotation) {

    }

    @Override
    public boolean isValid(String value, ConstraintValidatorContext context) {
        return false;
    }
}
